package cn.zwz.customer.entity;

import cn.zwz.basics.baseClass.ZwzBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import java.math.BigDecimal;

/**
 * @author 熊英杰
 */
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "a_commodity")
@TableName("a_commodity")
@ApiModel(value = "商品信息")
public class Commodity extends ZwzBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品代码")
    private String code;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "计量单位")
    private String unit;

    @ApiModelProperty(value = "原价")
    private BigDecimal money;

    @ApiModelProperty(value = "商品折扣")
    private BigDecimal discount;

    @ApiModelProperty(value = "成本价")
    private BigDecimal oldMoney;

    @ApiModelProperty(value = "型号")
    private String type;

    @ApiModelProperty(value = "供应商ID")
    private String supplierId;

    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "备注")
    private String remark;
}